# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer:
pkgname=py3-aioresponses
pkgver=0.7.1
pkgrel=4
pkgdesc="Helper to mock/fake web requests in the aiohttp package"
url="https://github.com/pnuckowski/aioresponses"
arch="noarch"
license="MIT"
depends="python3 py3-pbr"
makedepends="py3-setuptools"
source="aioresponses-$pkgver.tar.gz::https://github.com/pnuckowski/aioresponses/archive/$pkgver.tar.gz"
builddir="$srcdir/aioresponses-$pkgver"
options="!check" # requires dependencies yet to be packaged

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="2b43bc5e1cd17c9fded87049b8bbb756218d2ebd8d5eaaaa4772166c3f2e791a4a80b5bcfb9ef1b186a70680f771e552c1a85b7a5ad77d79e60338c7c91ca3bf  aioresponses-0.7.1.tar.gz"
